package com.mdxx.xczd.app;

import com.mdxx.xczd.bean.BarCodeBean;

public class UrlValue {

	/*public static String wsUrl = "ws://220.249.89.227:8887";
	public static String streamUrl = "rtsp://220.249.89.227:554";
	public static String web_url = "106.14.61.70";
	public static String url = "http://106.14.61.70:9090";
	public static String baseUrl = url+"/RelicProtectionAdmin/";
	public static String baseUrl2 = url+"/RelicProtectionAdmin/AndroidTaskServlet?action=";
	public static String baseUrl3 = url+"/RelicProtectionAdmin/AndroidDeviceServlet?action=";
	public static  String location = baseUrl2+"location";
	public static String deviceInfo = baseUrl3+"deviceInfo";
	*//*public static String wsUrl = "ws://220.249.89.227:8887";
	public static String streamUrl = "rtsp://220.249.89.227:554";
	public static String web_url = "106.14.56.140";
	public static String url = "http://106.14.56.140:9090";
	public static String baseUrl = url+"/RelicProtectionAdmin/";
	public static String baseUrl2 = url+"/RelicProtectionAdmin/AndroidTaskServlet?action=";
	public static String baseUrl3 = url+"/RelicProtectionAdmin/AndroidDeviceServlet?action=";
	public static  String location = baseUrl2+"location";
	public static String deviceInfo = baseUrl3+"deviceInfo";*//*


	public static void init(){
		baseUrl = url+"/RelicProtectionAdmin/";
		baseUrl2 = url+"/RelicProtectionAdmin/AndroidTaskServlet?action=";
		location = baseUrl2+"location";
		baseUrl3 = url+"/RelicProtectionAdmin/AndroidDeviceServlet?action=";
		deviceInfo = baseUrl3+"deviceInfo";
	}*/


	public static String wsUrl ;
	public static String streamUrl;
	public static String web_url;
	public static String url;
	public static String baseUrl;
	public static String baseUrl2;
	public static String baseUrl3;
	public static  String location;
	public static String deviceInfo;


	public static void init(BarCodeBean barCodeBean){
		web_url = barCodeBean.getWebUrl();
		url = barCodeBean.getUrl();
		wsUrl = barCodeBean.getWsUrl();
		streamUrl = barCodeBean.getStreamUrl();
		baseUrl = url+"/RelicProtectionAdmin/";
		baseUrl2 = url+"/RelicProtectionAdmin/AndroidTaskServlet?action=";
		location = baseUrl2+"location";
		baseUrl3 = url+"/RelicProtectionAdmin/AndroidDeviceServlet?action=";
		deviceInfo = baseUrl3+"deviceInfo";
		location = baseUrl2+"location";
	}

}
